package com.calendar.example;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CalendarExample {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	 Calendar calendar = Calendar.getInstance();
	 System.out.println("Day:"+ calendar.get(Calendar.DATE));
	 System.out.println("Month:"+calendar.get(Calendar.MONTH));
	 System.out.println("Year:"+ calendar.get(Calendar.YEAR));
	 System.out.println("Times:"+ calendar.getTime());
	 
	 SimpleDateFormat date_format = new SimpleDateFormat("yyyy/MM/dd");
	 System.out.println(date_format.format(calendar.getTime()));
	 
	 
	 

	}

}
